// JavaScript Document
var rootPath="/ystd";
function deletem(id){
	if(del()){
		$.post(rootPath+"/albumvideo/deleteVideo.dch","albumid="+id,function(response){
			if(response.length<1){
				alert("操作失败！");
			}else{
				//删除该行
				$("#"+id).replaceWith("");
			}
		})
	}	
}
function del(){
	  var msg = "您真的确定要删除吗？";
	  if (confirm(msg)==true){
		  return true;
	  }else{
		  return false;
	 }
}
function addVideo(){
	var title=$("#title").val();
	var videopath=$("#videopath").val();
	var id=$("#albumid").val();
	$.post(rootPath+"/albumvideo/insertVideo.dch","albumid="+id+"&video.title="+title+"&video.videopath="+videopath,function(response){
		$("#re").html(response);
	})
}